//
//  FPFootView.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/14.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPFootView.h"

@implementation FPFootView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UIView *HlineView = [[UIView alloc]initWithFrame:CGRectMake(kImageW(15), 0, kScreenWidth - kImageW(30), kImageH(1))];
        HlineView.backgroundColor = [UIColor colorWithWhite:0.783 alpha:1.000];
        [self addSubview:HlineView];
        
        self.newsBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        self.newsBtn.frame = CGRectMake(0, kImageH(5), kScreenWidth / 4, kImageH(25));
        [self.newsBtn setTitle:@"新闻" forState:UIControlStateNormal];
        [self.newsBtn setTintColor:[UIColor purpleColor]];
        [self addSubview:_newsBtn];
        
        UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(kScreenWidth / 4, kImageH(5), kImageW(1), kImageH(25))];
        lineView.backgroundColor = [UIColor colorWithWhite:0.785 alpha:1.000];
        [self addSubview:lineView];
        
        self.prevueBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        self.prevueBtn.frame = CGRectMake(kScreenWidth / 4, kImageH(5), kScreenWidth / 4, kImageH(25));
        [self.prevueBtn setTitle:@"预告片" forState:UIControlStateNormal];
        [self.prevueBtn setTintColor:[UIColor purpleColor]];

        [self addSubview:_prevueBtn];
        
        UIView *lineView2 = [[UIView alloc]initWithFrame:CGRectMake(kScreenWidth / 2, kImageH(5), kImageW(1), kImageH(25))];
        lineView2.backgroundColor = [UIColor colorWithWhite:0.726 alpha:1.000];
        [self addSubview:lineView2];
        
        self.topBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        self.topBtn.frame = CGRectMake(kScreenWidth / 2, kImageH(5), kScreenWidth / 4, kImageH(25));
        [self.topBtn setTitle:@"排行榜" forState:UIControlStateNormal];
        [self.topBtn setTintColor:[UIColor purpleColor]];

        [self addSubview:_topBtn];
        
        UIView *lineView3 = [[UIView alloc]initWithFrame:CGRectMake(kScreenWidth / 2 + kScreenWidth / 4, kImageH(5), kImageW(1), kImageH(25))];
        lineView3.backgroundColor = [UIColor colorWithWhite:0.789 alpha:1.000];
        [self addSubview:lineView3];
        
        self.discussBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        self.discussBtn.frame = CGRectMake(kScreenWidth / 4 + kScreenWidth / 2, kImageH(5), kScreenWidth / 4, kImageH(25));
        [self.discussBtn setTitle:@"影评" forState:UIControlStateNormal];
        [self.discussBtn setTintColor:[UIColor purpleColor]];
        
//        UIView *viewLine = [[UIView alloc]initWithFrame:CGRectMake(0, _discussBtn.y + _discussBtn.height , kScreenWidth, kImageH(6))];
//        viewLine.backgroundColor = [UIColor colorWithRed:0.766 green:0.808 blue:0.793 alpha:1.000];
//        [self addSubview:viewLine];
//        self.backgroundColor = [UIColor redColor];
        
        [self addSubview:_discussBtn];
  }
    
    
    /**
     *修改过后
     */
    return self;
}

@end
